package com.mes.service.hy;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.hy.EquipmentMapper;
import com.mes.entity.hy.Equipment;

/**
 * 
 * @ClassName:EquipmentServiceImpl
 * @Description: 设备service实现类
 * @Author hy
 * @Date 2018-5-30上午10:45:30
 * @version 1.0
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class EquipmentServiceImpl implements IEquipmentService {
	
	
	@Resource
	private EquipmentMapper equipmentMapper;

	
	@Override
	public List<Equipment> selectEquipment(Equipment equipment) {
		return equipmentMapper.selectEquipment(equipment);
	}

	@Override
	public int selectCount(Equipment equipment) {
		return equipmentMapper.selectCount(equipment);
	}
	
	
	@Override
	public List<Equipment> equOth(Equipment equipment) {
		return equipmentMapper.equOth(equipment);
	}

	@Override
	public int equCount() {
		return equipmentMapper.equCount();
	}

	@Override
	public Equipment selectById(Equipment equipment) {
		return equipmentMapper.selectById(equipment);
	}

	@Override
	public int delete(Long eid) {
		return equipmentMapper.delete(eid);
	}

	@Override
	public int addEqui(Equipment equipment) {
		return equipmentMapper.addEqui(equipment);
	}

	@Override
	public List<Equipment> selAll() {
		return equipmentMapper.selAll();
	}

	@Override
	public int update(Equipment equipment) {
		return equipmentMapper.update(equipment);
	}

}
